/*
	Main Functions
	main_functions.inc
	
	Coded by Midzi
*/

#define VERSION		"0.1 Alpha"

InfoToPlayer(playerid, msg[], soundid)
{
	if(soundid != 0)
	{
	    SendClientMessage(playerid, -1, msg);
	    PlayerPlaySound(playerid, soundid, 0.0, 0.0, 0.0);
	}
	else
	{
	    SendClientMessage(playerid, -1, msg);
	}

	return 1;
}

// -----------------------------------------------------------------------------

InfoToAll(msg[], soundid)
{
	if(soundid != 0)
	{
	    SendClientMessageToAll(-1, msg);
	    
	    for(new x; x < MAX_PLAYERS; x++)
	    {
	        PlayerPlaySound(x, soundid, 0.0, 0.0, 0.0);
	    }
	}
	else
	{
	    SendClientMessageToAll(-1, msg);
	}

	return 1;
}

// -----------------------------------------------------------------------------
